package com.ncucoder.server.mapper;

import com.ncucoder.server.model.Message;
import org.springframework.stereotype.Component;

/**
 * MessageConstants mapper
 *
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-18 21:11
 */
@Component
public interface MessageMapper {

    /**
     *
     * @param message
     * @return
     */
    int save(Message message);

    /**
     *
     * @param message
     * @return
     */
    int updateById(Message message);
}
